<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
        <title>系统配置</title>
        {''|getCommon} 
		{'easyui'|getPlugSingle}
	</head>
    <body>
		<div style="margin-bottom:5px">
			&nbsp;
		</div>
		<div>
			<form id="sysSet" method="post">
				<table cellpadding="5">
		    		<tr>
		    			<td>系统收益人登录ID:</td>
		    			<td><input class="easyui-textbox" type="text" name="sysBenLoginId" required="true" value="{$sysSet.sysBenLoginId}"></input></td>
		    		</tr>
		    		<tr>
		    			<td>最低提现金额:</td>
		    			<td><input class="easyui-textbox" type="text" name="sysMinWithdMo" data-options="required:true" value="{$sysSet.sysMinWithdMo}"></input></td>
		    		</tr>
		    		<tr>
		    			<td>收益人抽层百分点:</td>
		    			<td><input class="easyui-textbox" type="text" name="sysBenPer" data-options="required:true" value="{$sysSet.sysBenPer}"></input></td>
		    		</tr>
		    		<tr>
		    			<td><a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="saveSet()">保存</a></td>
		    			<td>&nbsp;</td>
		    		</tr>
		    	</table>
			</form>
		</div>
		<script>
			function saveSet(){
				$('#sysSet').form('submit', {
					url : 'updateSysSet',
					onSubmit : function() {
						return $(this).form('validate');//对数据进行格式化
					},
					success : function(data) {
						eval('var dataJson='+data);
						if(dataJson.result==true){
							$.messager.show({
								title : '提示',
								msg :'配置修改成功!'
							});
						}else{
							$.messager.show({
								title : '提示',
								msg :'修改失败请重试！'
							});
						}
					}
				});
			}
		</script>
    </body>
</html>
